package com.shiro.common.entity.base;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

/**
 * Created with IntelliJ IDEA.
 * User: dengpeng
 * Date: 2018/7/5
 * Time: 10:21
 * Description: No Description
 */
@EqualsAndHashCode(callSuper = true)
@MappedSuperclass
@Data
public class NameEntity<T> extends IdEntity {

    @Column(name = "name", length = 50, nullable = false)
    private T name;

}
